﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Help_Us
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["State"] == null)
            {
                Response.Redirect("../Conteudo/PaginaInicial.aspx");
            }
            else
            {
                string nome = Session["nome"].ToString();
                nomeUsuario.Text = nome;
            }


        }

        protected void Sair(object sender, EventArgs e)
        {
            Session.Abandon();
            Response.Redirect("../Conteudo/PaginaInicial.aspx");
        }
    }
}
